package day04;

public class TestCompany {
    public static void main(String[] args) {
        ColaEmployee[] employees = new ColaEmployee[4];

        employees[0] = new SalariedEmployee("张三", 3, 5000);
        employees[1] = new HourlyEmployee("李四", 7, 30, 200);
        employees[2] = new SalesEmployee("王五", 1, 20000, 0.05);


        int targetMonth = 3;
        Company company = new Company();
        company.printEmployeeSalary(employees, targetMonth);
    }
}
